package com.qf.service.impl;

import com.qf.entity.Goods_category;
import com.qf.mapper.Goods_categoryMapper;
import com.qf.service.Goods_categoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//商品类别业务逻辑层
@Service
public class Goods_categoryServiceImpl implements Goods_categoryService {

    @Autowired
    private Goods_categoryMapper goods_categoryMapper;

    @Override
    public void saveGoods_category(Goods_category goods_category) {
       /* goods_categoryMapper.addGoods_category(goods_category.getGoods_categoryName(),goods_category.getGoods_categoryPrice());*/
    }

    @Override
    public List<Goods_category> findAllGoods_categorys() {
        return goods_categoryMapper.findAll();
    }

    @Override
    public Goods_category findOne(Integer id) {
        return goods_categoryMapper.findOne(id);
    }

    @Override
    public void update(Goods_category goods_category) {
        goods_categoryMapper.update(goods_category);
    }

    @Override
    public void delete(Integer id) {
        goods_categoryMapper.delete(id);
    }
}
